<?php
/**
 * Introduction: 品牌  brand
 */

namespace Common\Model;


use Think\Model;

class BrandModel extends Model
{
    //定义数据库连接信息
    protected $connection;

    //定义表名
    protected $tableName = 'brand';

    /**
     * 初始化
     */
    public function _initialize()
    {

        $this->connection = C('Databaese');

    }

    /**
     * 获取活动列表
     */
    public function getlist($num,$limit){
        $list = $this->where("status=1")->order("displayorder desc")->field("id,name,logo")->limit($num,$limit)->select();
        return $list;
    }


}